using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("MasEduQualification")]
    public class MasEduQualification
    {
        public MasEduQualification()
        {
            this.hrm_tmp_employee_educations = new HashSet<TmpEmployeeEducation>();
        }

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "EduQualId", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public int EduQualId { get; set; }

		[DataMember, Display(Name = "EduQualCode", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public string EduQualCode { get; set; }

		[DataMember, Display(Name = "EduQualName", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public string EduQualName { get; set; }

		[DataMember, Display(Name = "EduQualNameEng", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public string EduQualNameEng { get; set; }

		[DataMember, Display(Name = "EduQualNameShort", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public string EduQualNameShort { get; set; }

		[ForeignKey("EduDegree")]
		[DataMember, Display(Name = "EduDegreeId", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public Nullable<int> EduDegreeId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasEduQualificationsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual ICollection<TmpEmployeeEducation> hrm_tmp_employee_educations { get; set; }

		public virtual HRM.MasEduDegree EduDegree { get; set; }

    }
}